
/*
 * Copyright 2002-2012 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 *版权所有2002-2012原作者。
 *
 *根据Apache许可证2.0版（“许可证”）许可；
 *除非符合许可证的规定，否则您不得使用此文件。
 *您可以在以下网址获取许可证副本
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 *除非适用法律要求或书面同意，否则软件
 *根据许可证分发是在“按原样”的基础上分发的，
 *无任何明示或暗示的保证或条件。
 *有关管理权限的特定语言，请参阅许可证
 *许可证下的限制。
 */

package org.springframework.context.weaving;

import org.springframework.beans.factory.Aware;
import org.springframework.instrument.classloading.LoadTimeWeaver;

/**
 * Interface to be implemented by any object that wishes to be notified
 * of the application context's default {@link LoadTimeWeaver}.
 *
 * @author Juergen Hoeller
 * @author Chris Beams
 * @since 2.5
 * @see org.springframework.context.ConfigurableApplicationContext#LOAD_TIME_WEAVER_BEAN_NAME
 */
/**
 *要由任何希望被通知的对象实现的接口
 *应用程序上下文的默认｛@link LoadTimeWeaver｝。
 *
 *@作者Juergen Hoeller
 *@作者Chris Beams
 *@自2.5起
 *@参见org.springframework.context.ConfiguratableApplicationContext#LOAD_TIME_WEAVER_BEAN_NAME
 */
public interface LoadTimeWeaverAware extends Aware {

	/**
	 * Set the {@link LoadTimeWeaver} of this object's containing
	 * {@link org.springframework.context.ApplicationContext ApplicationContext}.
	 * <p>Invoked after the population of normal bean properties but before an
	 * initialization callback like
	 * {@link org.springframework.beans.factory.InitializingBean InitializingBean's}
	 * {@link org.springframework.beans.factory.InitializingBean#afterPropertiesSet() afterPropertiesSet()}
	 * or a custom init-method. Invoked after
	 * {@link org.springframework.context.ApplicationContextAware ApplicationContextAware's}
	 * {@link org.springframework.context.ApplicationContextAware#setApplicationContext setApplicationContext(..)}.
	 * <p><b>NOTE:</b> This method will only be called if there actually is a
	 * {@code LoadTimeWeaver} available in the application context. If
	 * there is none, the method will simply not get invoked, assuming that the
	 * implementing object is able to activate its weaving dependency accordingly.
	 * @param loadTimeWeaver the {@code LoadTimeWeaver} instance (never {@code null})
	 * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet
	 * @see org.springframework.context.ApplicationContextAware#setApplicationContext
	 */
	/**
	 *设置此对象包含的｛@link LoadTimeWeaver｝
	 *｛@link org.springframework.context.ApplicationContext应用程序上下文｝。
	 *＜p＞在填充普通bean属性之后但在
	 *初始化回调类似
	 *｛@link org.springframework.beans.factory.InitializingBean初始化Bean的｝
	 *｛@link org.springframework.beans.factory.InitializingBean#afterPropertiesSet（）afterPropartiesSet（（）｝
	 *或自定义init方法。在之后调用
	 *｛@link org.springframework.context.ApplicationContextAware ApplicationContextAware的｝
	 *｛@link org.springframework.context.ApplicationContextAware#setApplicationContext setApplicationContext（..）｝。
	 *<p><b>注意：</b>只有当实际存在
	 *｛@code LoadTimeWeaver｝在应用程序上下文中可用。如果
	 *如果没有，则该方法将不会被调用，假设
	 *实现对象能够相应地激活其编织依赖关系。
	 *@param loadTimeWeaver｛@code loadTimeWeaver｝实例（从不｛@code-null｝）
	 *请参阅org.springframework.beans.factory.InitializingBean#afterPropertiesSet
	 *@见org.springframework.context.ApplicationContextAware#setApplicationContext
	 */
	void setLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver);

}
